package com.easydl.project.utils;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;



@ControllerAdvice
public class EasydlExceptionHandle {
	
	Logger logger=LoggerFactory.getLogger(this.getClass());
	
	@ExceptionHandler(Exception.class)
	public EasydlResultVO handleException(Exception e) {
		e.printStackTrace();
		logger.info(e.getMessage());
		return EasydlResultHandle.errorWithMeg("后台服务报错");
	}
}
